<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="dto.MemberDTO"%>
    <%@page import="dto.RoomDTO2" %>
    <%@page import="java.util.HashMap"%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
.t_01{
border-collapse: collapse;
}

.no{
border:1px;
border-color:#969b9c;
border-style:solid;
border-left:none;
border-top:none;
}
.image{
border:1px;
border-color:#969b9c;
border-style:solid;
border-left:none;
border-bottom:none;
border-top:none;
}

.title{
border:1px;
border-color:#969b9c;
border-style:solid;
border-top:none;
border-right:none;
}
.submit{
border:1px;
border-color:#969b9c;
border-style:solid;
border-top:none;
border-right:none;
border-left:none;


}
</style>
<script type="text/javascript">

</script>
</head>
<body>
<c:set var="dto" scope="session" value='<%= (MemberDTO)session.getAttribute("login_info")%>'/>
<c:forEach items="${requestScope.list }" var="map" varStatus="cnt">
	
	<form action="getContentByRoom.do" method="post">
	<table class='t_01' width="770">
	<tr>
	<td class="no" width="150">No. ${cnt.count }<br></td>
	<td width="250" class="title">Title </td>
	<td class="submit" align="left"><input type="submit" value=${map.rdto.title }><br>	</td>
	</tr>
	<tr>
	<td class="image" width="150"><img src="/Project_homeshare_room/uproomfile/${map.fdto.fileName }" width="100" height="50px"><br></td>
	<td>
	Room type<br> 
	Nation<br>
	Rental range<br>
	Rental price<br>
	</td>
	<td class="content" align="left">
	${map.rdto.property.propertyTypeContents }<br>
	${map.rdto.address.sido }<br>
	${map.rdto.privacy.privacyContents }<br>
	$${map.rdto.price1 }/ 1day<br>
	</td>
	
	</tr>
		
	
	</table>	
	<hr color="#969b9c">	
	<input type="hidden" value="${map.rdto.roomNo }" name="postScript_roomno">
	<input type="hidden" value="${map.rdto.address.dong}" name="dong">
	<input type="hidden" value="${map.search }" name="search">
	</form>

	
</c:forEach>
<br>
<a href="roominput.do">Register Room</a>

</body>
</html>